.dispatch {
  position: relative;
  overflow-x: hidden;
  .border-btn {
    color: #2c67f6;
    border-color: #2c67f6;
    &.gray {
      color: #48556a;
      border-color: #48556a;
    }
    &.red {
    }
  }
  .order-search {
    position: absolute;
    right: 0px;
    z-index: 2;
  }
  .add-btn {
    width: 14px;
    height: 14px;
    padding: 0;
    text-align: center;
    line-height: 11px;
    border-radius: 2px;
    border: 1px solid #1790ff;
    color: #1790ff;
    font-size: 12px;
    cursor: pointer;
    margin-left: 4px;
  }
  .personnel-main {
    height: 100%;
    .left {
      width: 260px;
      border-right: 1px solid #e6e6f0;
      flex-shrink: 0;
      .tree {
        .el-tree-node:focus > .el-tree-node__content,
        .el-tree-node__content:hover {
          background: #fff;
          // .tree-label {
          //   color: #2c67f6 !important;
          // }
        }

        & > .el-tree-node.is-expanded > .el-tree-node__content {
          background-color: #f0f4ff;
          .tree-label {
            color: #2c67f6 !important;
          }
        }
        .el-tree-node__content,
        .tree-label {
          height: 40px;
          line-height: 40px;
          border-radius: 4px;
          font-weight: 400;
          color: #39475d;
          font-size: 14px;
        }
        .tree-label.level1 {
          font-weight: normal;
          font-size: 15px;
        }
      }
    }
    .right {
      padding-left: 15px;
    }
    .search-box {
      .el-input__inner {
        background: #fff;
        border: 1px solid #bbbfc4;
        border-radius: 4px;
      }
    }
  }
}
.scheduling.dispatch {
  .el-tabs > .el-tabs__header .el-tabs__item.is-top {
    width: 120px;
  }
}
.dispatch-detail {
  height: 100%;
  .tool-box {
    background-color: #f6f9fc;
    padding-bottom: 10px;
    .el-breadcrumb__inner {
      font-size: 15px;
    }
  }
  .main {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .top {
    position: relative;
    height: 92px;
    padding: 15px 30px;
    box-sizing: border-box;
    border: 1px solid #e2e7f0;
    border-left: 4px solid #3760f3;
    position: relative;
    color: #182236;
    .el-button {
      position: absolute;
      top: 10px;
      right: 10px;
      color: #fff;
      border-color: #fff;
      background: transparent;
    }
    h3 {
      font-size: 18px;
      margin: 0 auto 10px;
    }
    .table-tag {
      line-height: 20px;
    }
    .icon {
      width: 45px;
      height: 45px;
      margin: 5px 16px 0 0;
      text-align: center;
      background: linear-gradient(180deg, #6599f7 0%, #4580f7 100%);
      border-radius: 17px;
      line-height: 45px;
      font-size: 22px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #ffffff;
      text-shadow: 0px 0px 3px rgba(22, 64, 165, 0.5);
    }
    .label {
      color: #606d86;
    }
    .date {
      position: absolute;
      top: -8px;
      right: -19px;
      width: 72px;
      height: 72px;
      background: #e4e9f1;
      cursor: pointer;
      h2,
      p {
        text-align: center;
        margin: 0;
        cursor: pointer;
      }
      h2 {
        font-size: 32px;
        font-weight: 500;
        color: #2c67f6;
        cursor: pointer;
      }
      .virtual-datepicker {
        position: absolute;
        top: 0;
        left: 0;
        width: 72px;
        height: 72px;
        overflow: hidden;
        opacity: 0;
        cursor: pointer;
        .el-input__inner {
          width: 72px;
          height: 72px;
        }
      }
    }
  }
  .middle {
    padding: 8px 30px 0 30px;
    height: 35px;
    line-height: 35px;
  }
  .bottom {
    padding: 0 20px 10px 20px;
    overflow-y: auto;
    flex-grow: 1;
    border-top: 10px solid #f6f9fc;
  }
  .table-btn .el-button,
  .table-btn .el-button--text:hover,
  .table-btn .el-button--text:focus {
    color: #ff7819;
    padding: 0;
  }
  .common-table {
    .el-table {
      .el-table__empty-block {
        height: 0 !important;
        min-height: 0;
      }
      .el-table__header-wrapper,
      .el-table__body-wrapper {
        width: fit-content;
      }
      .el-input__inner {
        border: none;
        background: transparent;
      }
      .el-select {
        .el-input__inner {
          border: none;
          padding: 0 20px 0 0;
          text-align: center;
        }
        .el-input__suffix {
          right: 0;
        }
      }
      .tag-select {
        position: relative;
        .tag {
          background: #fff;
          position: absolute;
          width: calc(100% - 30px);
          top: 0;
          pointer-events: none;
        }
      }
      .el-date-editor {
        width: 100%;
        .el-input__prefix {
          display: none;
        }
        .el-input__inner {
          padding: 0;
          text-align: center;
          border: none;
        }
      }
      &::after {
        display: none;
      }
    }
    .middle-line {
      width: 100%;
      box-sizing: border-box;
      padding: 0 20px;
      border-left: 1px solid #ebeef5;
      & > .el-row {
        flex-wrap: wrap;
        margin-left: 0 !important;
        margin-right: 0 !important;
        & > .el-col {
          padding: 10px 20px;
        }
        & > span {
          margin-bottom: 10px;
          color: #292b3d;
          white-space: nowrap;
        }
      }
      .el-input {
        .el-input-group__append {
          padding: 0 10px;
          background: #fff;
          color: #292b3d;
          border-left: none;
        }
        .el-input__inner:focus {
          border-color: #c0c4cc;
        }
        &.is-disabled {
          .el-input__inner,
          .el-input-group__append {
            color: #182236;
            background: #f7f7f7;
            border: none;
          }
        }
      }
      .machine .app-input {
        width: 146px;
        margin: 0;
        display: inline-block;
        .devSn-single {
          width: 84px;
          margin: 0;
          flex-shrink: 0;
          .el-input__inner {
            padding: 0 4px;
            border-top-right-radius: 0;
            border-bottom-left-radius: 0;
          }
        }
        .el-row > .el-input.el-input--small:not(.devSn-single) {
          width: 64px;
          margin: 0;
          .el-input__inner {
            padding: 0 4px;
            border-right: none;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
          }
        }
      }
      .el-input.pre-input {
        width: 160px;
        .el-input-group__prepend {
          padding: 0 0 0 10px;
          background: #fff;
          color: #292b3d;
          border-right: none;
          & + .el-input__inner {
            border-left: none;
            border-right: none;
            padding: 0;
            &:focus {
              border-color: #c0c4cc;
            }
          }
        }
      }
      .count-input {
        width: 86px;
        .el-input__inner {
          border-right: none;
        }
      }
      .machine1 .app-input {
        width: 130px;
        margin: 0;
        display: inline-block;
        .hcs .el-input__inner {
          padding: 0 4px;
          border-left: none;
        }
        .el-input__inner {
          padding: 0 4px;
        }
        .el-input-group__prepend {
          padding: 0;
          padding-left: 4px;
          background: #fff;
          border-right: none;
        }
        .el-input-group__append {
          padding-left: 0;
        }
        .el-input:last-child {
          .el-input__inner {
            border-right: none;
          }
        }
      }
      .remind {
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        margin: 0 -20px 10px -20px;
      }
    }
  }
}
